package com.dianganjiao.lib.http

import com.dianganjiao.lib.util.Toll

class ServiceBadErrorInterceptor : HttpErrorInterceptor() {

    override fun loadDataFailedInterceptor(code: Int, e: Throwable) : Boolean{
        if(code == 500){//服务器处理异常
            Toll.toll("服务器处理异常")
            return true
        }
        return false
    }
}